/**
* Copyright (c) 2016-2100 yunclouds
*/
package com.yunqian.redot.repository;

import com.yunqian.redot.domain.Menu;
import com.yunqian.repository.BaseRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author czy
 * 2018-11-08 09:42:03
 */
@Repository
public interface MenuRepository extends BaseRepository<Menu, Long> {

    List<Menu> findAllByStatusAndParentIdIsNull(Integer status);

    List<Menu> findAllByStatusAndUrlIsNotNull(Integer status);
}
